﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace FiddlerExUtils.Components
{
    class WindowsApi
    {
        [DllImport("user32.dll")]
        public static extern int SetScrollPos(
                                         IntPtr hWnd,
                                         int nBar,
                                         int nPos,
                                         bool bRedraw);

        [DllImport("user32.dll")]
        public static extern int  GetScrollPos(
                                         IntPtr hWnd,
                                         int nBar);

        [DllImport("user32.dll")]
        public static extern IntPtr FindWindowW(
                                         string lpClassName,
                                         string lpWindowName);

        [DllImport("user32.dll")]
        public static extern bool UpdateWindow(
                                          IntPtr hWnd 
                                          );
    }
}
